<?php
namespace app\admin\controller;


class Nav extends Base
{
    public function lists()
    {
        $this->_list("nav",['cms_id'=> $this->cms['id']],"sort asc,id asc");
        return view();
    }

    public function edit()
    {
        if($this->_edit("nav",['cms_id'=>$this->cms['id']])){
            $this->redirect("nav/lists");
        };
        return view();
    }
    public function delete()
    {
        $this->_delete("nav",['cms_id'=> $this->cms['id'],"id"=>input("get.id")],"nav/lists");
    }




}
